package architect.springcloud.eureka.client;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Thymeleaf模板Controller
 *
 * @author guanxin
 * @date 2018/4/19 15:05
 */

@Controller
public class ThymeleafController {

    @GetMapping("/list")
    public String list(ModelMap modelMap) {
        modelMap.put("name", "SpringCloud框架指南");
        modelMap.put("price", 89.50);
        modelMap.put("quantity", 100);
        return "list";
    }
}
